Release 10.1A: OpenEdge Data Management:
SQL Reference


SQLCursor.fetch

Fetches the next record in a result set, if there is one.

Format

public void fetch()

Returns

None

Parameters

None

Throws

DhSQLException

Example

This code fragment illustrates the fetch method and the getValue method:

for (;;)
{
     cust_cursor.Fetch ();
     if (cust_cursor.Found ())
     {
          cust_cursor.getValue (1, cust_number);
          cust_cursor.getValue (2, cust_name) ;
     }
     else
          break;
} 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095